lib: Move bareuseronly verification into commit/core
authorColin Walters <walters@verbum.org>
Mon, 18 Sep 2017 19:46:03 +0000 (15:46 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 21 Sep 2017 19:14:59 +0000 (19:14 +0000)
commit160864d557c02badc7e27a66484ffdf8a13b8341
treeba686b0ed7e03ad0d5e06eb7727eeec5446ac532
parentd4c7093e370843c57eab2f89f0c39ef449e6b32e
lib: Move bareuseronly verification into commit/core

Conceptually `ostree-repo-pull.c` should be be written using
just public APIs; we theoretically support building without HTTP
for people who just want to use the object store portion and
do their own fetching.

We have some nontrivial behaviors in the pull layer though; one
of those is the "bareuseronly" verification.  Make a new internal
API that accepts flags, move it into `commit.c`.  This
is prep for further work in changing object import to support
reflinks.

Closes: #1193
Approved by: jlebon
src/libostree/ostree-core-private.h
src/libostree/ostree-core.c
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo-pull.c
src/libostree/ostree-repo.c
tests/basic-test.sh
tests/pull-test.sh
tests/test-basic-user-only.sh